package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_QLDTTXA_ThongBaoTuyenSinh")
public class Tbl_QLDTTXA_ThongBaoTuyenSinh implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private String ten;
   private String hinhAnh;
   private String noiDung;
   private Date thoiGianBatDau;
   private Date thoiGianKetThuc;
   private Date ngayCongBoKetQua;
   private Date ngayHoanTatThuTuc;
   private Tbl_QLDTTXA_DM_KhoaHoc khoaHocId = null;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   public String getTen() {
   	return ten;
   }
   public void setTen(String ten) {
   	this.ten= ten;
   }

   public String getHinhAnh() {
   	return hinhAnh;
   }
   public void setHinhAnh(String hinhAnh) {
   	this.hinhAnh= hinhAnh;
   }

   public String getNoiDung() {
   	return noiDung;
   }
   public void setNoiDung(String noiDung) {
   	this.noiDung= noiDung;
   }

   public Date getThoiGianBatDau() {
   	return thoiGianBatDau;
   }
   public void setThoiGianBatDau(Date thoiGianBatDau) {
   	this.thoiGianBatDau= thoiGianBatDau;
   }

   public Date getThoiGianKetThuc() {
   	return thoiGianKetThuc;
   }
   public void setThoiGianKetThuc(Date thoiGianKetThuc) {
   	this.thoiGianKetThuc= thoiGianKetThuc;
   }

   public Date getNgayCongBoKetQua() {
   	return ngayCongBoKetQua;
   }
   public void setNgayCongBoKetQua(Date ngayCongBoKetQua) {
   	this.ngayCongBoKetQua= ngayCongBoKetQua;
   }

   public Date getNgayHoanTatThuTuc() {
   	return ngayHoanTatThuTuc;
   }
   public void setNgayHoanTatThuTuc(Date ngayHoanTatThuTuc) {
   	this.ngayHoanTatThuTuc= ngayHoanTatThuTuc;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="KhoaHocId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_KhoaHoc_tbl_QLDTTXA_ThongBaoTuyenSinh")
   public Tbl_QLDTTXA_DM_KhoaHoc getKhoaHocId() {
	    return khoaHocId;
   }
   public void setKhoaHocId(Tbl_QLDTTXA_DM_KhoaHoc khoaHocId) {
	    this.khoaHocId=khoaHocId;
   }
}//endClass 

